﻿Public Class Profiles
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btn_userProfileEdit_Click(sender As Object, e As EventArgs) Handles btn_userProfileEdit.Click
        If Request.Params("UserName") = User.Identity.Name Then
            btn_userProfileEdit.Visible = True
        Else
            btn_userProfileEdit.Visible = False
        End If
        'After this you have to set PostBackURL property of this button and put ProfileEdit.aspx, this PostBackURL will return you to edit your profile information
    End Sub
End Class